package com.lxd.property.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lxd.property.pojo.Payitems;
import com.lxd.property.service.PayitemsService;

@Controller
@RequestMapping("payitems")
public class PayitemsController {
	@Autowired
	private PayitemsService payitemsService;

	@RequestMapping(value = "findAllPayitems", method = RequestMethod.POST)
	@ResponseBody
	public List<Payitems> findAllPayitems() {
		return payitemsService.findAllPayitems();

	}
}
